<?php

namespace fztadmin\modules\user\models\forms;

use yii\base\Model;

class SetPhone extends Model
{
    public $phone;
    public $phoneCode;

    public function attributeLabels()
    {
        return [
            'phone' => "手机号",
            'phoneCode' => "短信验证码",
        ];
    }

    public function rules()
    {
        return [
            [['phone', 'phoneCode'], 'required'],
            [['phone', 'phoneCode'], 'trim'],
            ['phone', 'wodrow\yii2wtools\validators\Mobile'],
        ];
    }
}